From: Jasper St. Pierre Date: Mon, 18 Feb 2013 01:02:09 +0000 (-0500) Subject: popupMenu: Remove support for nested combo boxes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4782 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=44e4cbf04a62ae9b7405c21859a1bb294da371f2;p=gnome-shell.git popupMenu: Remove support for nested combo boxes I'm sure this was originally a testcase for nested child menus, and we never actually inteded any support for this. https://bugzilla.gnome.org/show_bug.cgi?id=693572 --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 5123696f3..eb3bd3076 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -1682,9 +1682,7 @@ const PopupComboBoxMenuItem = new Lang.Class({ _getTopMenu: function() { let actor = this.actor.get_parent(); while (actor) { - if (actor._delegate && - (actor._delegate instanceof PopupMenu || - actor._delegate instanceof PopupComboMenu)) + if (actor._delegate && actor._delegate instanceof PopupMenu) return actor._delegate; actor = actor.get_parent();